let MyPlugin = {}

MyPlugin.install = function (Vue, options) {
    Vue.directive('upper', {
        bind(el, binding, vnode, oldVnode) {
            // 逻辑...
            // console.log(el,binding,vnode,oldVnode)
            el.innerHTML = el.innerHTML.toUpperCase()
        }
    })
    Vue.directive('lower', {
        bind(el, binding, vnode, oldVnode) {
            // 逻辑...
            //console.log(el.innerHTML)
            el.innerHTML = el.innerHTML.toLowerCase()
        }
    })
}



export default MyPlugin

